package com.itheima.reggie.service;

import com.itheima.reggie.common.PageResult;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;

import javax.servlet.http.HttpSession;

public interface EmployeeService {
    R<Employee> login(Employee employee, HttpSession session);

    R<String> logout(HttpSession session);

    R<String> save(Employee employee, HttpSession session);

    R<PageResult> findPage(Long page, Long pageSize, String name);

    R<String> update(Employee employee, HttpSession session);

    R<Employee> findById(Long id);

}
